package com.feinno.urcs.group.dao;

import com.feinno.urcs.group.entity.GroupListInfo;
import com.feinno.util.Tuple3;
import org.helium.framework.annotations.ServiceInterface;

import java.sql.SQLException;
import java.util.List;

/**
 * Created by honghao on 8/17/15.
 */
@ServiceInterface(id = "group:GlobalGroupListDao")
public interface GlobalGroupListDao {

	List<GroupListInfo> getGroupList(String mobileNo) throws SQLException;

	void addGroup(String mobileNo, GroupListInfo groupListInfo) throws SQLException;

	void delGroup(String mobileNo, String groupUri) throws SQLException;

	void updateGroupName(String mobileNo, String groupUri, String groupName) throws SQLException;

	void changeGroupAdmin(String mobileNo, String groupUri, boolean isAdmin) throws SQLException;

	Tuple3<Integer, Integer, Integer> queryGroupCount(String mobileNo) throws SQLException;

	void dismissGroup(String groupUri) throws SQLException;
}
